<script language="javascript" type="text/javascript">

ws = new WebSocket("ws://127.0.0.1:8283");
// 服务端主动推送消息时会触发这里的onmessage
ws.onmessage = function(e){

};

</script>